<?xml version="1.0" encoding="utf-8"?>
<form>
	<fieldset addfieldpath="/administrator/components/com_doska/models/fields">
		<field name="id" type="hidden" />
		<field name="name" type="text" default="" label="COM_DOSKA_CATEGORY_TITLE" description="COM_DOSKA_CATEGORY_TITLE_DESCRIPTION" filter="raw" required="true" class="inputbox validate-name"/>
		
		<field   name="alias" type="text" default="" label="COM_DOSKA_CATEGORY_ALIAS" description="COM_DOSKA_CATEGORY_ALIAS_DESCRIPTION" filter="raw"/>
		
		<field name="parentid" type="categoryparent" default="0" label="COM_DOSKA_CATEGORY_PARENT" description="COM_DOSKA_CATEGORY_PARENT_DESCRIPTION" filter="raw"/>
		
		<field name="state" type="list" label="JSTATUS" description="JFIELD_PUBLISHED_DESC" class="chzn-color-state" size="1" default="1" >
		    <option value="1">JPUBLISHED</option>
		    <option value="0">JUNPUBLISHED</option>
		</field>
	</fieldset>	
	
	
	<fields name="params">
        <fieldset name="basic" label="COM_DOSKA_CATEGORY_PARAMS_BASIC">
            <field name="show_category" type="list" label="COM_DOSKA_CATEGORY_FIELD_SHOW_CATEGORY_LABEL" description="COM_DOSKA__CATEGORYFIELD_SHOW_CATEGORY_DESC" default="" class="chzn-color-state" >
                <option value="0">JHIDE</option>
                <option value="1">JSHOW</option>
            </field>
            
            <field
				name="image"
				type="media"
				label="COM_DOSKA_FIELD_IMAGE_LABEL"
				description="COM_CATEGORIES_FIELD_IMAGE_DESC" />

			<field 
				name="image_alt"
				type="text"
				label="COM_DOSKA_FIELD_IMAGE_ALT_LABEL"
				description="COM_CATEGORIES_FIELD_IMAGE_ALT_DESC"
				size="20" />
        </fieldset>
        
    </fields>
    
    <fieldset name="accesscontrol">
        <field name="asset_id" type="hidden" filter="unset" />
        <field name="rules"
                type="rules"
                label="JFIELD_RULES_LABEL"
                translate_label="false"
                filter="rules"
                validate="rules"
                class="inputbox"
                component="com_doska"
                section="category"
        />
    </fieldset>
    
    
</form>